﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using m10cde_WinForms.Hiscore;

namespace m10cde_WinForms{

    public partial class GameMenu : Form{

        /// <summary>
        /// Constructor. 
        ///  used for displaying the game content/menus + hi-scores
        /// </summary>
        public GameMenu(){
            InitializeComponent();
            hiscore_test mytestobject = new hiscore_test();
            mytestobject.addingDataTest();
            m10cde_WinForms.Hiscore.Hiscore myScoreObject = new m10cde_WinForms.Hiscore.Hiscore();  //create a hiscore object called myscoreobject
            hiscore_box.Text = myScoreObject.getScoreTable();   //write contents of hiscore method getScoresTable to the textbox

        }

        ///<summary>
        /// Inits the game screen with the GDI+ graphics ability
        ///</summary>
        public void drawScreen(){
            Graphics g = tetrisGameScreen.CreateGraphics();
            Pen p = new Pen(Color.Black, 15);
            g.DrawLine(p, new Point(100, 100), new Point(100,300));
        }

        ///<summary>
        /// calls the drawScreen method when the form is shown
        ///</summary>
        private void tetrisGameScreen_Shown(object sender, EventArgs e)
        {
            drawScreen();
        }

        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

    }
}
